<template>
  <div>
          <ul>
            <li v-for="item in GoodsList" :key="item.id" @click="goDetail(item.id)">
              <img v-lazy="item.list_pic_url"/>
              <div class="tit">
                <p>{{ item.name }}</p>
                <p>{{ item.retail_price | Rmb }}</p>
              </div>
            </li>
          </ul>
  </div>
</template>

<script>
export default {
    props:['GoodsList'],
    methods:{
        // 跳转到详情
      goDetail(id){
        this.$router.push({path:'/detail',query:{id:id}})
      }
    }
}
</script>

<style>

</style>